package com.company.huisuo.biz.adapter

import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.company.huisuo.biz.fragment.FeedBackArtistFragment
import com.company.huisuo.biz.fragment.FeedBackDanceFragment


class FeedBackViewPagerAdapter(activity: AppCompatActivity) : FragmentStateAdapter(activity) {

    override fun getItemCount(): Int {
        return 2
    }

    override fun createFragment(position: Int): Fragment {
        return if (position == 0) {
            FeedBackArtistFragment.newInstance()
        } else {
            FeedBackDanceFragment.newInstance()
        }
    }
}
